import request from '@/utils/request'

// 查询反馈信息列表
export function listReaction(query) {
  return request({
    url: '/interest/reaction/list',
    method: 'get',
    params: query
  })
}

// 查询反馈信息详细
export function getReaction(query) {
  return request({
    url: '/interest/reaction/getInfo',
    method: 'get',
    params: query
  })
}

// 新增反馈信息
export function addReaction(data) {
  return request({
    url: '/interest/reaction',
    method: 'post',
    data: data
  })
}

// 修改反馈信息
export function updateReaction(data) {
  return request({
    url: '/interest/reaction',
    method: 'put',
    data: data
  })
}

// 删除反馈信息
export function delReaction(id) {
  return request({
    url: '/interest/reaction/' + id,
    method: 'delete'
  })
}

// 导出反馈信息
export function exportReaction(query) {
  return request({
    url: '/interest/reaction/export',
    method: 'get',
    params: query
  })
}